Repository navigation
Visual blocks: start at their final height (no shrinking) - #17
Merged
Merged
Conversation
A visualization-only iframe started at 420px, shrank to 170px while the embed loaded (it reports 160px until its trace arrives) and then grew to its content, e.g. 188px for a short program. It now starts at 190px, and with large at the visualizer's requested height, and never gets smaller than that; other blocks keep the 170px minimum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cedricvogel-leo
added a commit
that referenced
this pull request
Oct 25, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Visualization-only blocks (
@GLPython.visual, profiles «anschauen» and «demo») visibly changed height when they appeared, e.g. when a quiz's solution opens.Why. The iframe started at 420px. Until its trace arrives, the embed reports only its loading state (160px, raised to the 170px minimum), and then its content. So the start height alone couldn't fix it: even at 200px the iframe would first dip to 170px.
Change
visualmode the start height is also the lower limit: 190px, or withlargethe requested visualizer height (60% of the window, as before).evalandturtleblocks keep the 170px minimum.largeVisualizerHeightis computed once and also passed to the embed as before.Measured in the hosted LiaScript player (every height the iframe takes, from the moment it appears):
mainx = 3 * (4 + 5)A taller visualization (e.g. with a function or output) grows from 190px to its height once, without shrinking first.
node scripts/check-macro.mjspasses.🤖 Generated with Claude Code